package com.njmaomao.gj.pyot.domain.wechat;

import com.njmaomao.gj.pyot.domain.model.PayRecord;

public class AppDefinedOrder implements PaymentOrder {

    private String orderCode;

    //订单总金额
    private int txnAmt;

    //订单描述
    private String orderDesc;

    //旧：支付方式 1-在线支付 2-货到付款 3-支付宝支付 4-微信支付 5-积分支付 6-银联支付
    //新：1-货到付款；2-微信；3-支付宝
    private Integer payMode;

    //支付类型 1-货币 2-积分
    private Integer payType;

    //货币类型 1-人民币
    private Integer currency;

    public AppDefinedOrder(String orderCode, int txnAmt, String orderDesc, Integer payMode, Integer payType, Integer currency) {
        this.orderCode = orderCode;
        this.txnAmt = txnAmt;
        this.orderDesc = orderDesc;
        this.payMode = payMode;
        this.payType = payType;
        this.currency = currency;
    }

    @Override
    public String orderCode() {
        return this.orderCode;
    }

    @Override
    public int txnAmt() {
        return this.txnAmt;
    }

    @Override
    public String orderDesc() {
        return this.orderDesc;
    }

    @Override
    public Integer payMode() {
        return this.payMode;
    }

    @Override
    public Integer payType() {
        return this.payType;
    }

    @Override
    public Integer currency() {
        return this.currency;
    }

    @Override
    public PayRecord.OrderType orderType() {
        return PayRecord.OrderType.APPDEFINED;
    }

    @Override
    public boolean isAllowPay() {
        return true;
    }

    @Override
    public boolean isPaied() {
        return false;
    }
}
